#ifndef __FX_APERTURE_H__
#define __FX_APERTURE_H__

#include <stdint.h>
#include <stdbool.h>

#include "rtthread.h"

// typedef enum
// {
#define FX_APERTURE_EVENT_READ_REQUEST  (0x01 << 0)
#define FX_APERTURE_EVENT_READ_DONE     (0x01 << 1)
#define FX_APERTURE_EVENT_WRITE_REQUEST (0x01 << 2)
#define FX_APERTURE_EVENT_WRITE_DONE    (0x01 << 3)
// } fx_aperture_event_t;

extern struct rt_event APERTURE_EVENT;

extern uint32_t FX_APERTURE_READ_VALUE;
extern uint32_t FX_APERTURE_WRITE_VALUE;

void fx_aperture_read(uint32_t *aperture_value);

void fx_aperture_write(uint32_t aperture_value);

#endif
